<form method="post">
    <table>
        <tr><td>姓名:</td><td><input type="text" name="name" required></td></tr>
        <tr><td>部门:</td><td>
            <select name="apartment">
                <option value=""></option>
                {foreach $apartment as $v}
                <option value="{$v.apartment}">{$v.apartment}</option>
                {/foreach}
            </select>
           <label style="color: red;font-weight: bold">系统管理员为空</label>
        </td></tr>
        <tr><td>电话:</td><td><input type="text" name="phone" required></td></tr>
        <tr><td>密码:</td><td><input type="password" name="psw" required></td></tr>
        <tr><td>确认密码:</td><td><input type="password" required></td></tr>
        <tr><td></td><td><input type="submit" value="添加"></td></tr>
    </table>
</form>